#!/bin/bash

set -e

pid=`ps -ef | grep cmdb-name-placeholder | grep -v grep | grep -v tail | awk '{print $2}'`
if [ -n "$pid" ];then
    kill $pid
fi

